<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf8" />
    <!--

    @license twgl.js Copyright (c) 2015, Gregg Tavares All Rights Reserved.
    Available via the MIT license.
    see: http://github.com/greggman/twgl.js for details

    -->
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, user-scalable=yes"
    />
    <meta property="og:title" content="TWGL.js - twgl-cube" />
    <meta property="og:type" content="website" />
    <meta
      property="og:image"
      content="http://twgljs.org/examples/screenshots/twgl-cube.png"
    />
    <meta property="og:description" content="TWGL.js - twgl-cube" />
    <meta property="og:url" content="http://twgljs.org" />

    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:site" content="@greggman" />
    <meta name="twitter:creator" content="@greggman" />
    <meta name="twitter:domain" content="twgljs.org" />
    <meta name="twitter:title" content="TWGL.js - twgl-cube" />
    <meta
      name="twitter:url"
      content="http://twgljs.org/examples/twgl-cube.html"
    />
    <meta name="twitter:description" content="TWGL.js - twgl-cube" />
    <meta
      name="twitter:image:src"
      content="http://twgljs.org/examples/screenshots/twgl-cube.png"
    />

    <link
      href="/resources/images/twgljs-icon.png"
      rel="shortcut icon"
      type="image/png"
    />

    <title>twgl.js - twgl cube</title>
    <style>
      body {
        margin: 0;
        font-family: monospace;
      }
      canvas {
        display: block;
        width: 100vw;
        height: 100vh;
      }
      #b {
        position: absolute;
        top: 10px;
        width: 100%;
        text-align: center;
        z-index: 2;
      }
      .box {
        position: absolute;
        right: 0;
        width: 20px;
        height: 20px;
      }
      .box1 {
        background-color: rgba(255, 255, 255, 1);
        top: 0;
      }
      .box2 {
        background-color: rgba(192, 192, 192, 1);
        top: 20px;
      }
    </style>
  </head>
  <body>
    <canvas id="c"></canvas>
    <div id="b"><a href="http://twgljs.org">twgl.js</a> - twgl-cube</div>
    <div class="box1 box"></div>
    <div class="box2 box"></div>
  </body>
  <!-- 方向光源 -->
  <script type="module" src="./index.js"></script>
</html>
